All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.naming.spi.ResolveResult

java.lang.Object
   |
   +----java.naming.spi.ResolveResult

public class ResolveResult
extends Object
This class represents the result of resolution of a name. It contains the object to which name was resolved, and the portion of the name that has not been resolved.


Variable Index

 o remainingName
 o resolvedObj

Constructor Index

 o ResolveResult()
 o ResolveResult(Object, Name)
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining name.
 o ResolveResult(Object, String)
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.

Method Index

 o appendRemainingComponent(String)
Adds a single component to the end of remaining name.
 o appendRemainingName(Name)
Adds components to the end of remaining name.
 o getRemainingName()
Retrieves the remaining unresolved portion of the name.
 o getResolvedObj()
Retrieves the object to which resolution was successful.
 o setRemainingName(Name)
Sets the remaining name field of this result to name.
 o setResolvedObj(Object)
Sets the resolved object field of this result to obj.

Variables

 o resolvedObj
 protected Object resolvedObj
 o remainingName
 protected Name remainingName

Constructors

 o ResolveResult
 protected ResolveResult()
 o ResolveResult
 public ResolveResult(Object robj,
                      String rcomp)
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.

Parameters:
robj - The object resolved to.
rcomp - The single remaining name component that has yet to be resolved.
 o ResolveResult
 public ResolveResult(Object robj,
                      Name rname)
Constructs a new instance of ResolveResult consisting of the resolved object and the remaining name.

Parameters:
robj - The object resolved to.
rname - The remaining name that has yet to be resolved.

Methods

 o getRemainingName
 public Name getRemainingName()
Retrieves the remaining unresolved portion of the name.

Returns:
The remaining unresolved portion of the name.
 o getResolvedObj
 public Object getResolvedObj()
Retrieves the object to which resolution was successful.

Returns:
The object to which resolution was successful.
 o setRemainingName
 public void setRemainingName(Name name)
Sets the remaining name field of this result to name.

Parameters:
name - The name to set remaining name to.
 o appendRemainingName
 public void appendRemainingName(Name name)
Adds components to the end of remaining name.

Parameters:
name - The components to add.
 o appendRemainingComponent
 public void appendRemainingComponent(String name)
Adds a single component to the end of remaining name.

Parameters:
name - The component to add.
 o setResolvedObj
 public void setResolvedObj(Object obj)
Sets the resolved object field of this result to obj.

Parameters:
obj - The object to use for setting the resolved object field.

All Packages  Class Hierarchy  This Package  Previous  Next  Index